package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_jieshi_travel", autoSave = true)
public class LogJieShiTravel {

    @FieldTypeAnnotation(desc = "活动Id", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "圈数")
    private int round;

    @FieldTypeAnnotation(desc = "触发事件")
    private String eventType = "";

    @FieldTypeAnnotation(desc = "触发事件结果")
    private String eventResult = "";

    @FieldTypeAnnotation(desc = "交子消耗前数量")
    private long beforeJiaoZi;

    @FieldTypeAnnotation(desc = "交子获得数量")
    private long jiaoZi;

    @FieldTypeAnnotation(desc = "交子消耗后数量")
    private long afterJiaoZi;

    @FieldTypeAnnotation(desc = "道具奖励")
    private String reward = "";

    @FieldTypeAnnotation(desc = "时间")
    private Date time;

    public LogJieShiTravel(int activityId, long userId, int round, String eventType, String eventResult, long beforeJiaoZi, long jiaoZi, long afterJiaoZi, String reward) {
        this.activityId = activityId;
        this.userId = userId;
        this.round = round;
        this.eventType = eventType;
        this.eventResult = eventResult;
        this.beforeJiaoZi = beforeJiaoZi;
        this.jiaoZi = jiaoZi;
        this.afterJiaoZi = afterJiaoZi;
        this.reward = reward;
        this.time = new Date();
    }
}
